package com.guigu.pojo.manufacture;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mr.Zhang
 * @since 2024-12-06
 */
@Data
@TableName("M_APPLY")
public class MApply implements Serializable {

    private static final long serialVersionUID=1L;

    //@apiModelProperty(value = "序号，自增长序列，唯一标识生产计划记录")
      @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    //@apiModelProperty(value = "生产计划编号，不可为空，唯一标识计划")
    @TableField("APPLY_ID")
    private String applyId;

    //@apiModelProperty(value = "产品编号，不可为空，关联产品档案")
    @TableField("PRODUCT_ID")
    private String productId;

    //@apiModelProperty(value = "产品名称，可空")
    @TableField("PRODUCT_NAME")
    private String productName;

    //@apiModelProperty(value = "产品描述，可空")
    @TableField("PRODUCT_DESCRIBE")
    private String productDescribe;

    //@apiModelProperty(value = "用途类型，可空")
    @TableField("TYPE")
    private String type;

    //@apiModelProperty(value = "生产计划数量，不可为空")
    @TableField("AMOUNT")
    private BigDecimal amount;

    //@apiModelProperty(value = "设计人，可空")
    @TableField("DESIGNER")
    private String designer;

    //@apiModelProperty(value = "备注，可空")
    @TableField("REMARK")
    private String remark;

    //@apiModelProperty(value = "登记人，可空")
    @TableField("REGISTER")
    private String register;

    //@apiModelProperty(value = "登记时间，可空")
    @TableField("REGISTER_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date registerTime;

    //@apiModelProperty(value = "复核人，可空")
    @TableField("CHECKER")
    private String checker;

    //@apiModelProperty(value = "审核意见，可空")
    @TableField("CHECK_SUGGESTION")
    private String checkSuggestion;

    //@apiModelProperty(value = "复核时间，可空")
    @TableField("CHECK_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date checkTime;

    //@apiModelProperty(value = "审核标志，如等待审核、通过、不通过，不可为空")
    @TableField("CHECK_TAG")
    private String checkTag;

    //@apiModelProperty(value = "派工标志，如未派工、已派工，不可为空")
    @TableField("MANUFACTURE_TAG")
    private String manufactureTag;


}
